package com.mdtx.database;

import com.mdtx.entity.ClassAttribute;
import com.mdtx.entity.FieldAttribute;

import java.util.List;
import java.util.Map;

/**
 * 数据库查询接口
 *
 * @author 猫啊
 * @create 2018-06-12 17:42
 **/
public interface DataBaseQuery {

    public List<String> queryAllDatabases(String sql);

    public List<ClassAttribute> queryDatabaseAllTables(String db);

    public List<FieldAttribute> queryTableColumns(String db, String table);

    public List<Map<String,String>> queryTablePrimaryKeys(String db, String table);
}
